<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%
  String xm = this.getServletContext().getInitParameter("path");
	String path1 = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+"/"+xm;
%>  
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>添加组织机构信息</title>
    <!-- 新 Bootstrap 核心 CSS 文件 -->
<link rel="stylesheet" href="<%=path1%>/qt/ycss/bootstrap.min.css">

<!-- 可选的Bootstrap主题文件（一般不用引入） -->
<link rel="stylesheet" href="<%=path1%>/qt/ycss/bootstrap-theme.min.css">

<!-- jQuery文件。务必在bootstrap.min.js 之前引入 -->
<script src="<%=path1%>/qt/yjs/jquery.min.js"></script>

<!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
<script src="<%=path1%>/qt/yjs/bootstrap.min.js"></script>
    
<script type="text/javascript" src="<%=path1%>/scripts/jquery-1.7.2.js"></script> 
<script type="text/javascript" src="<%=path1%>/scripts/pagekage/utils/widget/jqGrid/jquery.jqGrid.src.js"></script>
<script type="text/javascript" src="<%=path1%>/scripts/pagekage/utils/widget/jqGrid/i18n/grid.locale-cn.js"></script>

<script type="text/javascript">
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
</script>
<script>

</script>


</head>
<body>

 <div style="width: 800px; margin-left:auto; margin-right:auto;">

<div class="form-group has-success">
  <label class="control-label" for="inputSuccess1">组织机构名称</label>
  <input type="text" class="form-control" id="organization_name">
</div>
<div class="form-group has-success">
  <label class="control-label" for="inputSuccess1">组织机构地址</label>
  <input type="text" class="form-control" id="organization_address123">
</div>
<div class="form-group has-success">
  <label class="control-label" for="inputSuccess1">电话</label>
  <input type="text" class="form-control" id="organization_tel">
</div>
<script type="text/javascript">
//添加
function ajaxPost(){

  $.ajax({ 	
    data:{
    	organization_name:$("#organization_name").val(),
    	organization_address:$("#organization_address123").val(),
    	organization_tel:$("#organization_tel").val()
    	
    },
    	
    type:"Post",  
    dataType: 'json',  
    url:"Organization/addOrganization.do", 
    error:function(data){ 
    //	alert(data);
         alert("出错了！！");  
    },  
    success:function(data){
    //	alert(data);
    	alert('组织机构添加成功！');
    	window.location.href = 'listOrganization.jsp'; 
     }  
     });  
 } 

   
</script>
　　　　　　　　
      <input type="button" value="　提　交" onclick="ajaxPost()" class="btn btn-success"/>
    <input type="button" value="　取　消　"  class="btn btn-success"/>
　　　　

</div>




</body>
</html>
